﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

using Htss.Platform.Data;

namespace DreamBox.DAL.Config
{
    public class SiteConfig
    {
        /// <summary>
        /// 更新系统设置信息
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public bool Update(DreamBox.Model.SiteConfig m)
        {
            DbAction action = new DbAction("dbox_Config");
            action.SetFields("ConfigID", m.ConfigID, DbFieldType.Condition);
            action.SetFields("SiteName", m.SiteName);
            action.SetFields("SiteUrl", m.SiteUrl);
            action.SetFields("Title", m.Title);
            action.SetFields("KeyWords", m.KeyWords);
            action.SetFields("Description", m.Description);
            action.SetFields("ICP", m.ICP);
            action.SetFields("CopyRight", m.CopyRight);
            action.SetFields("RegisterOpen", m.RegisterOpen);
            action.SetFields("RegisterOpenMsg", m.RegisterOpenMsg);
            action.SetFields("SiteOpen", m.SiteOpen);
            action.SetFields("SiteOpenMsg", m.SiteOpenMsg);
            action.SetFields("IsLogin", m.IsLogin);
            action.SetFields("IsLoginMsg", m.IsLoginMsg);
            return action.Update();
        }
    }
}
